<!DOCTYPE html>
<html ng-controller="appCtrl" data-ng-init="initSecurity(true);">
	<head>
		<meta charset="UTF-8">
		<title>贵州茂兰国家级自然保护区电子办公系统</title>
		<link rel="stylesheet" href="style/init.css">
	    <link rel="stylesheet" href="style/plugin.css">
	    <link rel="stylesheet" href="style/gis.css">
	    <link rel="stylesheet" href="style/skin.css">
	    <link rel="stylesheet" type="text/css" href="http://localhost/web-base/jquery-easyui/v1.5.2/themes/bootstrap/easyui.css">
    	<link rel="stylesheet" type="text/css" href="http://localhost/web-base/jquery-easyui/v1.5.2/themes/icon.css">
	</head>
	<!--外来科研人员入区许可流程办理-->
	<body data-ng-init="findWork(initGzqjgl);">
		<form name="form" novalidate style="height:calc(100% - 60px);">
		<div class="zs-sys-header">
			<div class="tools">
				<a href="javascript:;" class="tg" ng-show="gzccgl.auth.opt_tj" ng-click="setUser('gzccgl','ccrid','ccrxm') && formValidate(form) && getNextTask('gzccgl');">通过</a>
				<a href="javascript:;" ng-show="gzccgl.auth.opt_tz" class="tz" ng-click="setUser('gzccgl','ccrid','ccrxm') && formValidate(form) && getSkipTask('gzccgl');">跳转</a>
				<a href="javascript:;" ng-show="gzccgl.auth.opt_bc" class="bc" ng-click="setUser('gzccgl','ccrid','ccrxm') && bpmSave('gzccgl')">保存</a>
				<!--<a href="javascript:;" class="txsc" >图形审查</a>
				<a href="javascript:;" class="zj">自检</a>-->
				<a href="javascript:;" class="blgc" ng-click="loadBpmProcess('gzccgl')">办理过程</a>
				<a href="javascript:;" ng-show="gzccgl.auth.opt_cx && (mi.sa || mi.xt_zfgn)" class="tj" ng-click="formValidate(form) && disposal('gzccgl')">作废</a>
				<a href="javascript:;" ng-show="gzccgl.auth.opt_ch" class="ch" ng-click="formValidate(form) && getRetractTask('gzccgl');">撤回</a>
				<!--<a href="javascript:;"  class="bh" ng-click="userDispose('gzccgl','自定义结束')">自定义结束</a>-->
<!--				<a href="javascript:;" class="gb">关闭</a>
				<a href="javascript:;"  class="bh" >驳回</a>-->
<!--				<a href="javascript:;" ng-show="gzccgl.auth.opt_ch" class="ch">撤回</a>
				<a href="javascript:;" class="dy">打印</a>
				<a href="javascript:;" ng-show="gzccgl.auth.opt_gq" class="gq">挂起</a>-->
				<a href="javascript:;" ng-show="gzccgl.auth.opt_jh" class="jh" ng-click="easter('gzccgl')">激活</a>
				<!--<a href="javascript:;" ng-show="gzccgl.auth.opt_jg" class="jg">解挂</a>-->
			<!--	<a href="javascript:;" class="ldsc">林地审查</a>
				<a href="javascript:;" class="sl">受理</a>
				<a href="javascript:;" class="tijiao">提交</a>-->
				<a href="javascript:;" ng-show="gzccgl.auth.opt_th" ng-click="formValidate(form) && getBackTask('gzccgl');"
					 class="th" ng-show="gzccgl.auth.opt_th" >退回</a>
				<!--<a href="javascript:;" class="xmsc">项目审查</a>-->
			</div>
		</div>
		
		<div class="zs-sys-body" ui-view="panel">
			
		</div>
	</form>
		<!-- 提交操作 -s -->
		<div ag-Window id="opt_tj" title="提交" width='320px' height='240px'>
	        <div class="zs-form-tab ibox">
	        	<form name="tj_form" novalidate>
				    <table>
				        <tbody>
				        	<tr ng-repeat="task in gzccgl.opttj.nextTask">
	                                <td >
	                                	<input type="checkbox" ng-model="task.taskSelect"
	                                 	ng-if="gzccgl.opttj.selectTask"
	                                 	ng-click="selectTjTask('gzccgl',task);"
										ng-true-value="true" ng-false-value="false"> 
										<label ng-bind="task.taskName"></label>  </td>
	                                <td ><span ng-repeat="iuser in task.user">
										<input type="checkbox" ng-model="iuser.userSelected"
	                                	ng-click="selectTjUser('gzccgl',task,iuser);"
										ng-true-value="true" ng-false-value="false"> 

									<label ng-bind="iuser.userName"></label>

	                                </span></td>
	                        </tr>
				        </tbody>
				        <tfoot>
				            <tr>
				                <td colspan="2">
				                    <input type="button" name="ok" value="提交" class="zs-btn c-red"
				                    	ng-click="bpmValidate('gzccgl') && signTask('gzccgl')"/>
				                    <input type="button" name="ok" value="取消" class="zs-btn c-green" 
				                    	ng-click="closeWindow('opt_tj') 
				                    	" />
				                </td>
				            </tr>
				        </tfoot>
				    </table>
				</form>
			</div>
	    </div>
	    <!-- 提交操作 -e -->
	    
	    <!-- 退回操作 -s -->
		<div ag-Window id="opt_back" title="退回" width='320px' height='240px'>
	        <div class="zs-form-tab ibox">
	        	<form name="th_form" novalidate>
				    <table>
				        <tbody>
				        	<tr ng-repeat="task in gzccgl.optback.nextTask">
                                <td >
                                	<input type="checkbox" ng-model="task.taskSelect"
                                 	ng-if="gzccgl.optback.selectTask"
                                 	ng-click="selectBackTask('gzccgl',task);"
									ng-true-value="true" ng-false-value="false"> 
									<label ng-bind="task.taskName"></label>  
                                </td>
	                        </tr>
				        </tbody>
				        <tfoot>
				            <tr>
				                <td>
				                    <input type="button" name="ok" value="确定" class="zs-btn c-red"
				                    	ng-click="sendBack('gzccgl')"/>
				                    <input type="button" name="ok" value="取消" class="zs-btn c-green" 
				                    	ng-click="closeWindow('opt_back') 
				                    	" />
				                </td>
				            </tr>
				        </tfoot>
				    </table>
				</form>
			</div>
	    </div>
	    <!-- 退回操作 -e -->
		
		<!-- 撤回操作 -s -->
		<div ag-Window id="opt_retract" title="撤回" width='320px' height='240px'>
		    <div class="zs-form-tab ibox">
		    	<form name="tz_form" novalidate>
				    <table>
				        <tbody>
				        	<tr ng-repeat="task in gzccgl.optretract.nextTask">
		                        <td >
		                        	<input type="checkbox" ng-model="task.taskSelect"
		                         	ng-if="gzccgl.optretract.selectTask"
		                         	ng-click="selectRetractTask('gzccgl',task);"
									ng-true-value="true" ng-false-value="false"> 
									<label ng-bind="task.taskName"></label>  
		                        </td>
		                    </tr>
				        </tbody>
				        <tfoot>
				            <tr>
				                <td>
				                    <input type="button" name="ok" value="确定" class="zs-btn c-red"
				                    	ng-click="retractTask('gzccgl')"/>
				                    <input type="button" name="ok" value="取消" class="zs-btn c-green" 
				                    	ng-click="closeWindow('opt_retract') 
				                    	" />
				                </td>
				            </tr>
				        </tfoot>
				    </table>
				</form>
			</div>
		</div>
		<!-- 撤回操作 -e -->
	    
	    <!-- 跳转操作 -s -->
		<div ag-Window id="opt_skip" title="跳转" width='320px' height='240px'>
	        <div class="zs-form-tab ibox">
	        	<form name="tz_form" novalidate>
				    <table>
				        <tbody>
				        	<tr ng-repeat="task in gzccgl.optskip.nextTask">
                                <td >
                                	<input type="checkbox" ng-model="task.taskSelect"
                                 	ng-if="gzccgl.optskip.selectTask"
                                 	ng-click="selectSkipTask('gzccgl',task);"
									ng-true-value="true" ng-false-value="false"> 
									<label ng-bind="task.taskName"></label>  
                                </td>
	                        </tr>
				        </tbody>
				        <tfoot>
				            <tr>
				                <td>
				                    <input type="button" name="ok" value="确定" class="zs-btn c-red"
				                    	ng-click="skipTask('gzccgl')"/>
				                    <input type="button" name="ok" value="取消" class="zs-btn c-green" 
				                    	ng-click="closeWindow('opt_skip') 
				                    	" />
				                </td>
				            </tr>
				        </tfoot>
				    </table>
				</form>
			</div>
	    </div>
	    <!-- 跳转操作 -e -->

	    <!-- 办理过程 -s -->
		<div ag-Window id="opt_blgc" title="办理过程" style="width:900px;height:500px;" 
			data-ng-init="setTab('opt_blgc','process')">
			<div class="zs-nice-tab idTabs">
	    		<div class="link">
	    			<a class="{{tabs['opt_blgc'].tabClass['process']}}" ng-click="setTab('opt_blgc','process')">办理过程</a>
		    		<a class="{{tabs['opt_blgc'].tabClass['image']}}" ng-click="setTab('opt_blgc','image')">流程图</a>
	    		</div>
	    	</div>
	        <div class="zs-form-tab ibox" ng-show="tabs['opt_blgc'].tabClass['process']">
				    <table>
				        <tbody>
				        	<tr>
				        		<td class="head" width="80px">业务来源</td>
								<td class="head" width="100px">环节名称</td>
								<td class="head" width="80px">办理人</td>
								<td class="head" width="80px">办理部门</td>
								<td class="head" width="150px">接收日期</td>
								<td class="head" width="150px">办理日期</td>
			<!-- 					<td class="head" width="80px">办理限期</td> -->
								<td class="head" width="80px">办理结果</td>
								<td class="head" width="100px">详细情况</td>
				            </tr>

				            <tr ng-repeat="curRow in gzccgl.historyLst">
								<td><label ng-bind="curRow.fromassigneesname"></label></td>
								<td><label ng-bind="curRow.taskdefname"></label></td>
								<td><label ng-bind="curRow.optassigneesname"></label></td>
								<td><label ng-bind="curRow.optorgname"></label></td>
								<td><label ng-bind="curRow.fromtime | asDate | date:'yyyy-MM-dd HH时'"></label></td>
								<td><label ng-bind="curRow.opttime | asDate | date:'yyyy-MM-dd HH时'"></label></td>
								<td><label ng-bind="curRow.optresult"></label></td>
								<td><a title="{{curRow.optcontent}}"><label ng-bind="curRow.optcontent"></label></a></td>
							</tr>

				        </tbody>
				    </table>
				</form>
			</div>
			 <div class="zs-form-tab ibox" ng-show="tabs['opt_blgc'].tabClass['image']">
			<!--	<img ng-src="{{getServerBaseUrl()/processImage/loadImage?bpmkey=gzccgl.bpmkey&sexeid=gzccgl.sexeid}}"></img>-->
				<img align="center" id="bpm_img" ng-src="{{gzccgl.loadImage}}" />
			</div>
	    </div>
	    
	     <div ag-Window id="chooseProject" title="选择项目" width='560px' height='360px'>
		    <div class="zs-form-tab ibox"
		    	data-ng-init="formInit('gzprojectinfo', {
			        keyField:'id',
			        randomFields:['id'],
			        orderObject:{id:0}
			    }) && loadData('gzprojectinfo');setConHei();">
		        <div class="zs-nice-tab idTabs">
					<div class="tool item" style="margin-left:6px;">
		            	<span class="search-warpper">
		                    <i class="icon"></i>
		                    <input type="text" class="zs-input" placeholder="项目名称" ng-model="gzprojectinfo.queryObject['sxmmc']"/>
		                </span>
		            	<span class="search-warpper">
		                    <i class="icon"></i>
		                    <input type="text" class="zs-input" placeholder="项目类型" ng-model="gzprojectinfo.queryObject['sxmlx']"/>
		                </span>
		            </div>
		            <div class="operation item">
		                <a class="ope-1" ng-click="loadData('gzprojectinfo')"></a>
		                <a class="ope-2"></a>
		            </div>
		            <div class="switch">
		                
		            </div>
		        </div>
		        <div class="date-container">
		            <div id="zpgwd">
		                <div class="zs-data-table">
		                    <div class="container">
		                        <table>
		                            <thead>
		                                <tr>
											<th>项目名称</th>
											<th>项目编号</th>
											<th>项目类型</th>
		                                </tr>
		                            </thead>
		                            <tbody>
		                                <tr ng-repeat="r in gzprojectinfo.datas">
											<!--  项目名称 -->
		            						<td>
		                                        <a ng-click="chooseProject(gzccgl.editRow,r,'chooseProject');">
		                                            <label ng-bind="r.sxmmc"></label>
		                                        </a>
		                                   </td>
		                                   <!--  项目编号 -->
		            						<td>
		                                        <a ng-click="chooseProject(gzccgl.editRow,r,'chooseProject');">
		                                            <label ng-bind="r.sxmbh"></label>
		                                        </a>
		                                   </td>
											<!--  项目类型 -->
		            						<td>
		                                        <a ng-click="chooseProject(gzccgl.editRow,r,'chooseProject');">
		                                            <label ng-bind="r.sxmlx"></label>
		                                        </a>
		                                   </td>
		                                </tr>
		                            </tbody>
		                        </table>
		                    </div>
		                </div>
		                <div class="zs-pagination-box">
		                    <ag-Page fn='gzprojectinfo'></ag-Page>
		                </div>
		            </div>
		        </div>
		    </div>
		</div>
	    <!-- 办理过程 -e -->
		<!--<div class="zs-sys-footer">
			<span>版权所有(c)</span>
			<span>技术支持：</span>
			<span>联系电话：</span>
		</div>-->
	
		<script type="text/javascript" src="http://localhost/web-base/jquery/v1.7.2/jquery.min.js"></script>
		<script type="text/javascript" src="http://localhost/web-base/jquery-cookie/v1.4.1/jquery.cookie.js"></script>
		<script type="text/javascript" src="http://localhost/web-base/jquery-easyui/v1.5.2/jquery.easyui.min.js"></script>
		<script type="text/javascript"
		        src="http://localhost/web-base/jquery-easyui/v1.5.2/locale/easyui-lang-zh_CN.js"></script>
		
		<script type="text/javascript" src="script/jquery.tipTip.js"></script>
		<script type="text/javascript" src="script/jquery.ibox.3.0.js"></script>
		<script type="text/javascript" src="script/jquery.itabExtend.js"></script>
		<script type="text/javascript" src="script/jquery.itab.js"></script>
		<script type="text/javascript" src="script/zs.layout.js"></script>
		<script type="text/javascript" src="script/zs.core.js"></script>
	    
	    <!-- 基础参数初始化 -->
	    <script type="text/javascript" src="init.js"></script>

	    <!-- 业务代码初始化 -->
	    <script src="http://localhost/web-base/require/v2.3.3/require.min.js" data-main="main.js"></script>
	</body>
</html>
